package com.ruoyi.client.service.impl;

import com.ruoyi.client.mapper.NovelMapper;
import com.ruoyi.client.pojo.form.ChapterForm;
import com.ruoyi.client.pojo.form.NovelsPageForm;
import com.ruoyi.client.pojo.vo.ChapterVo;
import com.ruoyi.client.pojo.vo.NovelVo;
import com.ruoyi.client.service.NovelService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class NovelServiceImpl implements NovelService {
    @Resource
    private NovelMapper novelMapper;
    @Override
    public List<NovelVo> page(NovelsPageForm form) {
        return novelMapper.page(form);
    }

    @Override
    public List<ChapterVo> listChapter(ChapterForm chapterForm) {
        return novelMapper.listChapter(chapterForm);
    }


}
